//
//  NYUserFormLoginHeaderView.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2017/12/19.
//  Copyright © 2017年 niuwaketang. All rights reserved.
//

#import "NYUserFormLoginHeaderView.h"
@interface NYUserFormLoginHeaderView ()
@property(nonatomic, strong) QMUIGhostButton *iconButton;
@end
@implementation NYUserFormLoginHeaderView
- (void)setupView
{
        [super setupView];
        [self addSubview:self.iconButton];
        [self.iconButton mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.center.equalTo(self);
                make.width.height.mas_equalTo(__WGHeight(81));
        }];
        
}
- (QMUIGhostButton *)iconButton
{
        if (_iconButton == nil) {
                _iconButton = [[QMUIGhostButton alloc] qmui_initWithImage:[UIImage login_logo] title:nil];
                _iconButton.ghostColor = [UIColor whiteColor];
                _iconButton.cornerRadius = 18;
                _iconButton.clipsToBounds = YES;
                _iconButton.userInteractionEnabled = NO;
        }
        return _iconButton;
}
@end
